<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        function sleep (time) {
            return new Promise((resolve) => setTimeout(resolve, time));
        }
        async function count() {
            let counter = 1
            for (let i = 0; i < 100; i++) {
                counter += 1
                console.log(counter)
                await sleep(1000)
            }
        }
        count()
    </script>
</body>
</html>